package org.nimi317.web_gis.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nimi317.web_gis.entity.AreaQuality;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 每个小时的区域质量 服务类
 * </p>
 *
 * @author nimi317
 * @since 2024-01-25
 */
public interface IAreaQualityService extends IService<AreaQuality> {

    void updateAreaQualityData();

    /**
     * 获取24小时内空气质量数据
     */
    List<AreaQuality> getRecentAreaQuality(String id);

    IPage<AreaQuality> getHistory(Integer integer, List<LocalDateTime> timeRange);

    List<AreaQuality> getHistoryList(Integer integer, List<LocalDateTime> timeRange);

    List<AreaQuality> getRealTime();
}
